package com.zy.thread.bank3;

/**
 * @Author Gong
 * @Description 模拟 甲用户 和 乙用户 交替存钱
 * @dATE 2021/12/14 14:26
 **/
public class TestAdd {
    public static void main(String[] args) {
        Account account=new Account(0);
        Customer one = new Customer(account);
        Customer two = new Customer(account);
        one.setName("甲");
        two.setName("乙");

        one.start();
        two.start();

    }
}
